package com.rytx.system.service.impl;

import com.rytx.system.domain.ysp.ArtCommonConfig;
import com.rytx.system.mapper.ArtCommonConfigMapper;
import com.rytx.system.service.ArtCommonConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArtCommonConfigServiceImpl implements ArtCommonConfigService {
    @Autowired
    private ArtCommonConfigMapper artCommonConfigMapper;


    @Override
    public List<ArtCommonConfig> getAllConfigs() {
        return artCommonConfigMapper.getAllConfigs();
    }

    @Override
    public ArtCommonConfig getConfigById(Long id) {
        return artCommonConfigMapper.getConfigById(id);
    }

    @Override
    public int createConfig(ArtCommonConfig config) {
        return artCommonConfigMapper.createConfig(config);
    }

    @Override
    public int updateConfig(ArtCommonConfig config) {
        return artCommonConfigMapper.updateConfig(config);
    }

    @Override
    public int deleteConfig(Long id) {
        return artCommonConfigMapper.deleteConfig(id);
    }

    @Override
    public List<ArtCommonConfig> searchConfigs(ArtCommonConfig config) {
        return artCommonConfigMapper.searchConfigs(config);
    }
}
